# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=font-sarasa-gothic
pkgver=0.36.6
pkgrel=0
pkgdesc="CJK programming font based on Iosevka and Source Han Sans"
url="https://github.com/be5invis/Sarasa-Gothic"
arch="noarch"
options="!check" # no testsuite
license="OFL-1.1"
depends="fontconfig"
makedepends="libarchive-tools"
source="https://github.com/be5invis/Sarasa-Gothic/releases/download/v$pkgver/sarasa-gothic-ttc-$pkgver.7z"
builddir="$srcdir"

package() {
	bsdtar -xf "sarasa-gothic-ttc-$pkgver.7z" -C "$builddir"/
	install -Dm644 "$builddir"/*.ttc \
		-t "$pkgdir/usr/share/fonts/${pkgname#font-}"
}

sha512sums="
06f173837d5ab7a256063f6fd9bf02f9a17832032df9d8aaf1dc0943351204346800873c16471a782aee2bd3751440de12b144b57cd8a0d455e3fac8337df255  sarasa-gothic-ttc-0.36.6.7z
"
